package com.hm;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @author shishun.wang
 * @date 下午4:14:48 2016年11月11日
 * @version 1.0
 * @describe
 */
@Component
public class ApplicationHelper implements ApplicationListener<ContextRefreshedEvent> {

	private static final Logger LOGGER = LoggerFactory.getLogger(ApplicationHelper.class);

	public void onApplicationEvent(ContextRefreshedEvent event) {
		ApplicationContext applicationContext = event.getApplicationContext();
		LOGGER.debug("init spring container , init config " + applicationContext);
	}

}
